package de.fuberlin.inf.alp3.ue06;

public class Boolean implements Expression {
    private boolean value;
    
    public Boolean(boolean value) {
        this.value = value;
    }
    public Boolean() {
    }
    
    public void setValue(boolean value) {
        this.value = value;
    }
    public boolean getValue() {
        return this.value;
    }

    @Override
    public Expression eval() {
        return this;
    }

    @Override
    public String toString() {
        return (new StringBuffer().append(this.value)).toString();
    }
}